﻿<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Site.Master" CodeBehind="Sum.aspx.vb" Inherits="assignment1.WebForm1" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    Enter first number&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="tb_firstnumber" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" 
        ControlToValidate="tb_firstnumber" CssClass="errormessage" 
        ErrorMessage="Please enter a number"></asp:RequiredFieldValidator>
    <br />
    Enter second number
    <asp:TextBox ID="tb_secondnumber" runat="server"></asp:TextBox>
    <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" 
        ControlToValidate="tb_secondnumber" CssClass="errormessage" 
        ErrorMessage="Please enter a number"></asp:RequiredFieldValidator>
    <br />
    <br />
    <asp:Button ID="btn_sum" runat="server" Height="29px" Text="Sum" 
        Width="103px" />
    <br />
    <br />
    <asp:Label ID="lbl_result" runat="server"></asp:Label>
    <br />
    <br />
    <br />
</asp:Content>
